package com.bsp.controller;

import com.bsp.domain.SysUser;
import com.bsp.service.SysUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zyf
 */
@RestController
@RequestMapping(value = "/api/sysUser")
public class SysUserController {

    private static  Logger logger= LoggerFactory.getLogger(SysUserController.class);
    @Autowired
    private SysUserService sysUserService;

    @RequestMapping(value="/findByName")
    public void findByName(){
        SysUser sysUser=sysUserService.findByName("test1");
        logger.info("---mybatis查询测试-----"+sysUser.getName());
    }
}
